import { createComponent } from '@mpxjs/core'
import {PropType} from "vue";
import {HotKeyVo} from "../../services/types";

interface HotSearchComponentVo {
  data: {

  }
}

createComponent<HotSearchComponentVo['data']>({
  properties: {
    histories: {
      type: Array as PropType<string[]>,
      value: []
    },
    hotKeys: {
      type: Array as PropType<HotKeyVo[]>,
      value: []
    }
  },
  methods: {
    handleClick(name: string) {
      this.triggerEvent('search', name);
    }
  }
})
